detect

suspend fun detect(imageFile: File): List<SpatialBarcode>

Detect the configured barcode formats and their positions in an image.

Positions use normalized coordinates with a top-left origin in the input image displayed upright according to its orientation metadata. Call this method from an IO coroutine dispatcher because it reads the input image from disk.

Throws

if the SDK license is invalid or expired, or the demo session is over

if the input image cannot be read